<div *ngIf="hero">
  <h2>{{hero.name}} 的详情!</h2>
  <div>
    <label>id: </label>{{hero.id}}</div>
  <div>
    <label>name: </label>
    <input [(ngModel)]="hero.name" placeholder="name" />
  </div>
  <button (click)="goBack()">后退</button>
  <button (click)="save()">保存</button>
</div>